cInfobox = {}
cInfobox.Visible = false
cInfobox.Width = ScrW()/4
cInfobox.Height = ScrH()/3
cInfobox.X	= 0
cInfobox.Y = 0
cInfobox.Title = ""
cInfobox.Items = {}

function cInfobox:Init()
	self.Items = {}
	self.Visible = false
	self.Title = ""
end

function cInfobox:Register(w,h,x,y)
	self.Width = w
	self.Height = h
	self.X = x
	self.Y = y
end

function cInfobox:SetVisible(bool)
	if not type(bool) == "boolean" then return end
	self.Visible = bool
	gui.EnableScreenClicker( bool )
end

function cInfobox:SetTitle(title)
	self.Title = title
end

function cInfobox:SetType(btype)
	self.BoxType = btype
end

function cInfobox:SetObject(obj)
	self.Object = obj
	self:PrepareDisplay()
end

function cInfoBox:PrepareDisplay()
	if not self.Object or not self.BoxType then return end
	
	if self.BoxType == "item" then
		
	end
end

function cInfobox:DrawBox()	
	-- draw the main rectangle
	surface.SetDrawColor( 0,0,0,205 )
	surface.DrawRect( 0, 0, self.Width, self.Height )
end

function cInfobox:Paint()	
	if (self.Visible == true) then	
		self:DrawBox()	
	end
	return true
end
		
vgui.Register("cInfobox", cInfobox, "Panel")